﻿using Sustainalytics.Synchronization.Interface;
using System.Collections.Concurrent;
using System.Collections.Generic;
using Xunit;

namespace Sustainalytics.ClientDW.Synchronization.SyncCarbonData.Tests
{
    public class CarbonDataSyncStepTests
    {
        private const string MongoConnectionString = "mongodb://localhost:27017/ClientDW_A";

        [Fact]
        public void ISyncStep_Start_Test()
        {
            var syncStep = new CarbonDataSyncStep();

            var syncContext = new SyncContext
            {
                LastSyncTime = null,
                GAConnectionStrings = new Dictionary<string, string>
                {
                    {"ClientDW", MongoConnectionString }
                },
                PreviousChanges = new List<ChangedElement>(),
                Report = new ConcurrentBag<string>()
            };

            syncStep.Start(syncContext);
        }
    }
}
